/**
 * 淡入效果
 * @param button_id/option_value,div_id
 */
function opendiv(button_id, div_id) {
	document.querySelector('body').addEventListener('click', function(e) {
		if (e.target.id === button_id) {
			document.querySelector(div_id).className = 'move';
			document.querySelector(div_id).style.zIndex = 2000;
			document.getElementById('overlay').style.visibility = 'visible';
			document.getElementById('overlay').style.opacity = 0.8;
		}
	}, false);
}


function showtablediv(button_id, div_id) {
	document.querySelector('body').addEventListener('click', function(e) {
		if (e.target.id === button_id) {
			document.querySelector(div_id).className = 'move';
			document.querySelector(div_id).style.zIndex = 3000;
		}
	}, false);

}

/**
 * 淡出效果
 * @param button_id,div_id
 */
function closediv(button_id, div_id) {
	document.querySelector('body').addEventListener('click', function(e) {
		if (e.target.id === button_id) {
			document.querySelector(div_id).className = '';
			document.querySelector(div_id).style.zIndex = 0;
			document.getElementById('overlay').style.visibility = 'hidden';
			document.getElementById('overlay').style.opacity = 0;
		}
	}, false);
}